using System;
using MEA.AE_Data.Config;

namespace MEA.AE_BusinessLogic
{
	public class ServiceLayerStringEventArg : EventArgs
	{
		private string msg = string.Empty;

		private int value;

		private ConfigData.SUIProgressbar suiprogressBar;

		public string Message
		{
			get
			{
				return msg;
			}
		}

		public int Value
		{
			get
			{
				return value;
			}
		}

		public ConfigData.SUIProgressbar SuiProgressbar
		{
			get
			{
				return suiprogressBar;
			}
		}

		public ServiceLayerStringEventArg(object messageData)
		{
			if (messageData is string)
			{
				msg = (string)messageData;
				value = 0;
			}
			else if (messageData is ConfigData.SUIProgressbar)
			{
				suiprogressBar = (ConfigData.SUIProgressbar)messageData;
			}
		}

		public ServiceLayerStringEventArg(string messageData, int value)
		{
			msg = messageData;
			this.value = value;
		}
	}
}
